package edu.cueb.wmis.pojo;

import java.math.BigDecimal;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuzizhuo
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_incomebillitem")
@ApiModel(value="Incomebillitem对象", description="")
public class Incomebillitem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "明细Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "品名")
    @Excel(name = "品名")
    private String name;

    @ApiModelProperty(value = "规格")
    @Excel(name = "规格")
    private String spec;

    @ApiModelProperty(value = "单位")
    @Excel(name = "单位")
    private String unit;

    @ApiModelProperty(value = "入库数量")
    @Excel(name = "数量")
    private Integer inNumber;

    @ApiModelProperty(value = "单价")
    @Excel(name="单价")
    private BigDecimal price;

    @ApiModelProperty(value = "生产日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @Excel(name = "生产日期",format = "yyyy-MM-dd")
    private LocalDate productionTime;

    @ApiModelProperty(value = "保质期")
    @Excel(name = "保质期(月)")
    private Integer shelfLife;

    @ApiModelProperty(value = "货架id")
    private Integer shelfId;

    @ApiModelProperty(value = "所属的入库概单")
    private Integer billId;

    @ApiModelProperty(value = "货物id")
    private Integer goodId;

    @ApiModelProperty(value = "货架")
    @TableField(exist = false)
    private Shelf shelf;

    @ApiModelProperty(value = "仓库")
    @TableField(exist = false)
    private House house;

}
